<div class="pageContent">
	<form action="<?php echo url('system/agentsettxt');?>" method="post" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent" layoutH="60">
			<?php 
			$acct = Acct::find('id = ?',$_SESSION['acct']['id'])->getOne();
			?>
				<p>
				<label>开关状态：</label>
				<?php echo $_SESSION['acct']['smsflag'] ? '已经打开':'未开放(提交无效)';?>
				</p>
				<p>
				<label>短信内容：</label>
				<input type="text" class="required" value="<?php echo $_SESSION['acct']['smsmsg']?>" name="smsmsg" size="25"/>
				</p>
				<p>
				<label>短信签名：</label>
				<input type="text" class="required" value="<?php echo $_SESSION['acct']['smssign']?>" name="smssign" />
				</p>
				<p>
				<label>短信模式：</label>
				<select name="smstype">
				<option value="0" <?php echo $acct->smstype == 0?'selected':''?>>系统默认(系统内容+短信内容+签名)</option>
				<option value="1" <?php echo $acct->smstype == 1?'selected':''?>>自定义(短信内容+签名)</option>
				<option value="2" <?php echo $acct->smstype == 2?'selected':''?>>语音模式</option>
				
				</select>
				</p>
				<p>
				<label>自定义说明：</label>内置标签:%phone%=账号,%money%=余额,%password%=密码
				</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button class="close" type="button">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div> 
